home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1980-05-17 | 949 b | 24 lines |
- '****************THE RIGHT PROCEDURE-By Mark Wickson**************************
- Rem Procedures are like subroutines,except they can contain variables of
- Rem their own,but will be totally ignored if you don't call for them by name.
- Rem To read more about procedures and variables,read the on-disk document
- Rem files
- Rem To start a procedure write:
- Rem Procedure
- Rem and then after "Procedure write the procedure name(In this case lets
- Rem call it ZAP):
- Rem Procedure ZAP
- Rem Then on the lines below,you can enter all the commands you want,
- Rem then you must put on a seperate line:
- Rem End Proc
- Rem The procedure will then finish and the program will return to just after
- Rem you called up the procedure.To call a procedure from anywhere in a program,
- Rem just type its name(eg.If you wanted procedure ZAP,you'd write):
- Rem ZAP
- WOW
- Procedure WOW
- Print "This is Procedure WOW"
- End Proc
- Procedure AMAZED
- Print "This is Procedure AMAZED"
- End Proc